import request  from '@/utils/request';

import { BASE_URL } from '@/config/query';

export async function queryPage(params = { pageSize: 10, pageNum: 0 }) {
  return request(`${BASE_URL}/floor_plan/page`, params)
}

export async function queryInfoById(id) {
  return request(`${BASE_URL}/floor_plan/detail/${id}`)
}

export async function create(params) {
  return request(`${BASE_URL}/floor_plan/create`, params)
}

export async function update(params) {
  return request(`${BASE_URL}/floor_plan/modify`, params)
}

export async function remove(id) {
  return request(`${BASE_URL}/floor_plan/remove/${id}`)
} 